import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/reset.css'
import MyHttpServe from '@/plugins/http'
import Moment from 'moment'
import bread from '@/components/cuscom/bread'

// 使用插件
Vue.use(ElementUI)
Vue.use(MyHttpServe)

Vue.config.productionTip = false
// 全局的日期过滤器
Vue.filter('fmtdate', (v) => {
  return Moment(v).format('YYYY-MM-DD')
})
// 全局注册组件
Vue.component('bread', bread)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
